package com.example.design.personal.observer;

public class TestObserver {

    public static void main(String[] args) {
        Message message = new Message();
        message.setName("xurongbei");
        message.setTabIndex(1);
        Subject subject = new Subject();
        subject.addAttach(new ConcretObserver());
        subject.setMessage(message);

    }
}
